Stage changes

Stage your changes to commit them, so that you can push them to the remote repository or send them to Gerrit for review.

Stage the current file

To mark a new or modified file for committing it to the repository, stage the file in one of the following ways:

  • Go to Tools > Git > Current File and select Stage <file> for Commit.
  • Right-click the file in Projects or File System and select Git > Stage.
  • Go to Tools > Git > Local Repository > Commit, right-click the file in Files and select Stage.

Unstage the current file

To remove the current file from the staged changes, unstage the file in one of the following ways:

  • Go to Tools > Git > Current File and select Unstage <file> from Commit.
  • Right-click the file in Projects or File System and select Git > Unstage.
  • Go to Tools > Git > Local Repository > Commit, right-click the file in Files and select Unstage.

Stage chunks or lines

You can stage changes for a commit chunk-by-chunk or line-by-line in the Git Diff view.

See also How to: Use Git and Using Git.